//
//  ViewController.m
//  JUImageGalleryDemo
//
//  Created by Ju on 15/8/19.
//  Copyright (c) 2015年 juwenz. All rights reserved.
//

#import "ViewController.h"
#import "JUImageGalleryViewController.h"
#import "ImageLoaderDatabossVersion.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSArray *imageArr = @[@"/image/w%3D310/sign=939f92c5928fa0ec7fc7620c1696594a/5ab5c9ea15ce36d32476d3c639f33a87e850b1d2.jpg",@"/image/pic/item/0823dd54564e9258e765dfe39e82d158ccbf4e6d.jpg",@"/image/w%3D310/sign=939f92c5928fa0ec7fc7620c1696594a/5ab5c9ea15ce36d32476d3c639f33a87e850b1d2.jpg"];
    NSArray *imageOffline = @[@"test1",@"test2",@"test3"];
    JUImageGalleryViewController *vc = [[JUImageGalleryViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil];
    [vc configurationWithType:JUImageGalleryImageFromServer imageURIArray:imageArr URIPrefix:@"http://b.hiphotos.baidu.com"];
    ImageLoaderDatabossVersion *imageLoader = [[ImageLoaderDatabossVersion alloc] init];
    vc.imageOffset = 0;
    vc.imageLoader = imageLoader;
    vc.repeat = YES;
    vc.indicatorType = JUImageGalleryImageIndicatorPageControl;
    [self addChildViewController:vc];
    [self.view addSubview:vc.view];
}



@end
